﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using NesGfx;

namespace cnetmegamanprj
{
    public class TSAEditData
    {
        public byte[] chrdata; //can be raw binary. tileMap can be used to find the index of the realchrdata
        public int offset, len, displayR, displayC;
        public TSA tsa;
        public int[] tileMap; //maps tileIndex to offset in chrdata
        public byte[] highBits, pal; //highBits is 1 byte per tile in the tsa, pal is nes 0-15
    }
    public class TileEditData
    {
        public byte[] buf;
        public int offset, amount;
        public int[] map = null; //optional. It takes in a tile number and output the actuall tile #
        public int c, r;
    }
    public class LevelData
    {
        public TSAEditData tsaEdit;
        public byte[,] worldMap;
        public byte[,] paletteIndex; //paletteIndex may be null. Value values are 0-3. room,col*row.
        public byte[,] attr;
        public int tsaCol, tsaRow;
        public byte[] numberOfRooms;
    }
}
